package cn.itcast.order.service;

import cn.itcast.order.entity.Order;
import cn.itcast.order.model.req.CreateOrderOfHighConcurrencyReq;

public interface OrderService {

    /**
     * 创建订单
     */
    Long create(Order order);

    /**
     * 高并发场景下创建订单
     * @param req
     */
    void createOrderOfHighConcurrency(CreateOrderOfHighConcurrencyReq req);

    /**
     * 测试线程与事务
     */
    void testThreadTransaction();

    /**
     * 测试事务的propagation:notsupported
     */
    void testNotSupported();
}